<div class="layui-form" lay-filter="layuiadmin-app-form-list" id="layuiadmin-app-form-list"style="padding: 20px 30px 0 0;">
    <div class="layui-form-item">
      <label class="layui-form-label">SKU</label>
      <div class="layui-input-inline">
        <script type="text/html" template>
          <input type="text" name="SKU" id="SKU"  lay-filter="SKU" value="{{ d.params.sku || '' }}" lay-verify="required" placeholder="请输入SKU" autocomplete="off" class="layui-input {{ d.params.type == 'edit' ? 'layui-bg-gray' : '' }}" {{ d.params.type == 'edit' ? 'readonly' : '' }}>
        </script>
      </div>
    </div>
    <div class="layui-form-item">
      <label class="layui-form-label">中文名称</label>
      <div class="layui-input-inline" id="cname_text">
        <script type="text/html" template>
          <input type="text" id="cname" name="cname" value="{{ d.params.cname || '' }}" lay-verify="required" placeholder="请输入陈列类" autocomplete="off" class="layui-input {{ d.params.type == 'edit' ? 'layui-bg-gray' : '' }}" {{ d.params.type == 'edit' ? 'readonly' : '' }}>
        </script>
      </div>
    </div>
    <div class="layui-form-item">
      <label class="layui-form-label">陈列类</label>
      <div class="layui-input-inline">
        <script type="text/html" template>
          <input type="text" name="display_classified" value="{{ d.params.display_classified || '' }}" lay-verify="required" placeholder="请输入陈列类" autocomplete="off" class="layui-input">
        </script>
      </div>
    </div>
    <div class="layui-form-item">
      <label class="layui-form-label">大类</label>
      <div class="layui-input-inline">
        <script type="text/html" template>
          <input type="text" name="classified_one" value="{{ d.params.classified_one || '' }}" lay-verify="required" placeholder="请输入大类" autocomplete="off" class="layui-input">
        </script>
      </div>
    </div>
    <div class="layui-form-item">
      <label class="layui-form-label">中类</label>
      <div class="layui-input-inline">
        <script type="text/html" template>
          <input type="text" name="classified_two" value="{{ d.params.classified_two || '' }}" lay-verify="required" placeholder="请输入中类" autocomplete="off" class="layui-input">
        </script>
      </div>
    </div>
    <div class="layui-form-item">
      <label class="layui-form-label">小类</label>
      <div class="layui-input-inline">
        <script type="text/html" template>
          <input type="text" name="classified_three" value="{{ d.params.classified_three || '' }}" lay-verify="required" placeholder="请输入小类" autocomplete="off" class="layui-input">
        </script>
      </div>
    </div>
    <div class="layui-form-item">
      <label class="layui-form-label">细类</label>
      <div class="layui-input-inline">
        <script type="text/html" template>
          <input type="text" name="classified_four" value="{{ d.params.classified_four || '' }}" lay-verify="required" placeholder="请输入细类" autocomplete="off" class="layui-input">
        </script>
      </div>
    </div>
     <div class="layui-form-item">
      <label class="layui-form-label">生命周期</label>
      <div class="layui-input-inline">
        <script type="text/html" template>
          <select name="cycle_stage" lay-verify="required">
            <option value="">请选择</option>
            <option value="1" {{ d.params.cycle_stage == 1 ? 'selected' : '' }}>补货期</option>
            <option value="2" {{ d.params.cycle_stage == 2 ? 'selected' : '' }}>新品期</option>
            <option value="3" {{ d.params.cycle_stage == 3 ? 'selected' : '' }}>计划淘汰期</option>
            <option value="4" {{ d.params.cycle_stage  == 4 ? 'selected' : '' }}>淘汰期</option>
          </select>
        </script>
      </div>
    </div>
    <div class="layui-form-item">
      <label class="layui-form-label">销售状态</label>
      <div class="layui-input-inline">
        <script type="text/html" template>
          <select name="sales_state" lay-verify="required">
            <option value="">请选择销售状态</option>
            <option value="1" {{ d.params.sales_state == 1 ? 'selected' : '' }}>新产品</option>
            <option value="2" {{ d.params.sales_state == 2 ? 'selected' : '' }}>清仓品</option>
            <option value="3" {{ d.params.sales_state == 3 ? 'selected' : '' }}>在售品</option>
            <option value="4" {{ d.params.sales_state  == 4 ? 'selected' : '' }}>下架品</option>
          </select>
        </script>
      </div>
    </div>
    <div class="layui-form-item">
      <label class="layui-form-label">SKU等级</label>
      <div class="layui-input-inline">
        <script type="text/html" template>
            <input type="text" name="sku_grade" value="{{ d.params.sku_grade || '' }}" lay-verify="required" placeholder="请输入号码" autocomplete="off" class="layui-input" lay-verify="required">

        </script>
      </div>
    </div>
    <div class="layui-form-item">
    <label class="layui-form-label">季节性产品</label>
    <div class="layui-input-block">
        <script type="text/html" template>
      {{# if(d.params.type=='edit'){ }}
      <input type="radio" name="is_time" lay-filter="is_time" value="1" title="是" {{ d.params.is_time == 1 ? 'checked' : '' }} lay-verify="required">
      <input type="radio" name="is_time" lay-filter="is_time" value="2" title="否" {{ d.params.is_time == 2 ? 'checked' : '' }} lay-verify="required">
      {{# }else{ }}
      <input type="radio" name="is_time" lay-filter="is_time" value="1" title="是" >
      <input type="radio" name="is_time" lay-filter="is_time" value="2" title="否"  checked>
      {{# } }}
      </script>
    </div>
  </div>
    <div class="layui-form-item" style="display: none;" id="datePeriod">
      <label class="layui-form-label">季节日期</label>
      <div class="layui-input-inline">
        <script type="text/html" template>
            <div class="layui-input-inline"  style="width:60px">
                <input type="hidden" class="layui-input"  value="{{#  if(d.params.seasonal_cycle){ var date=d.params.seasonal_cycle.split('-');var start_time=date[0];var end_time=date[1]; console.log(start_time);console.log(end_time);}else{var date='';var start_time='';var end_time='';} }}">
                <select name="seasonal_start_time" id="seasonal_start_time">
                    <option value="">-请选择开始时间-</option>
                    {{# for(var i=1;i<=12;i++){  }}
                    <option value="{{ i }}"  {{ start_time ==  i  ? 'selected' : '' }}   >{{ i }}</option>
                    {{# }  }}
              </select>    
            </div>
             <div class="layui-input-inline"style="width:20px">-</div>
            <div class="layui-input-inline"  style="width:60px">
                <!--<input type="text" class="layui-input" id="test-laydate-range-month" placeholder=" - " name="seasonal_cycle" value="{{ d.params.seasonal_cycle || '' }}" lay-verify="required">-->
                <select name="seasonal_end_time" id="seasonal_end_time">
                    <option value="">-请选择结束时间-</option>
                    {{# for(var i=1;i<=12;i++){  }}
                    <option value="{{ i }}" {{ end_time ==  i  ? 'selected' : '' }} >{{ i }}</option>
                    {{# }  }}
              </select>    
            </div>
        </script>
      </div>
    </div>
    <script type="text/html" template>
      <input type="hidden" name="id" value="{{ d.params.id || '' }}">
    </script>
    <div class="layui-form-item">
      <label class="layui-form-label"></label>
      <div class="layui-input-inline">
        <input type="button" lay-submit lay-filter="layuiadmin-app-form-submit" value="确认" class="layui-btn">
      </div>
    </div>
  </div>
